<?php

class Application_Model_Venue implements Zend_Paginator_Adapter_Interface {

    private $result;

    public function __construct($venue, $itemCountPerPage, $page, $country) {
        $this->result = Lastfm_Venue::search($venue, $itemCountPerPage, $page, $country);
    }

    public function getItems($offset, $itemCountPerPage) {
        return $this->result;
    }

    public function count() {
        return $this->result->getTotalResults();
    }

}

